import request from '@/utils/request.js'

import {useTokenStore} from '@/stores/token.js'










export const treeListService = (params)=>{
    return  request.get('/admin/tree/listAll',{params:params})
}


export const treeAddService = (data)=>{
    return request.post('/admin/tree/add',data);

}


export const treeDelService = (id)=>{
    return request.get('/admin/tree/del?id='+id)
}

export const treeEditService = (data)=>{
    return  request.post('/admin/tree/edit',data)
}

export const treeResourcePublishService = (data)=>{
    return  request.post('/admin/tree/publish',data)
}
